<template>
  <div class="wrapper">
    <loginForm v-if="isLogin" :setLogin="setLogin"></loginForm>
    <registerForm v-else :setLogin="setLogin"></registerForm>
  </div>
</template>

<script setup lang="ts">
import loginForm from "@/components/oldman/login-from/index.vue";
import registerForm from "@/components/oldman/register-from/index.vue";
import { ref } from "vue";
let isLogin = ref(true);
const setLogin = (val: boolean) => {
  isLogin.value = val;
};
</script>

<style scoped>
.wrapper {
  display: flex;
  padding-top: 100px;
  justify-content: center;
}
</style>
